﻿using System.Windows.Forms;
using System.Drawing;
using System.ComponentModel;

namespace HiStaff.Control
{
    [ToolboxBitmap(typeof(Label))]
    public class HiLabel : Label
    {
        public string DataField { get; set; }
        [DefaultValue(false)]
        public override bool AutoSize
        {
            get
            {
                return base.AutoSize;
            }
            set
            {
                base.AutoSize = value;
            }
        }
        public HiLabel()
        {
            this.BackColor = Color.Transparent;
            this.TextAlign = ContentAlignment.MiddleRight;
        }
    }
}
